/**
 *
 */
package com.naiterui.ehp.bs.doctor.dao.impl;

import com.naiterui.ehp.bp.domain.DoctorCertificateVoucher;
import com.naiterui.ehp.bs.doctor.dao.IDoctorCertificateVoucherDao;
import com.naiterui.ehp.bs.doctor.repository.IDoctorCertificateVoucherRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Ldl
 * @since 1.0.0
 */
@Component
public class AdDoctorCertificateVoucherDaoImpl  implements IDoctorCertificateVoucherDao {

    @Autowired
    private IDoctorCertificateVoucherRepository doctorCertificateVoucherRepository;
    /**
     * @Author Ldl
     * @Date 2017年8月4日
     * @since 1.0.0
     * @param doctorId
     * @return
     * @see IDoctorCertificateVoucherDao#findDoctorCertificateVoucherByDoctorId(java.lang.Long)
     */
    @Override
    public DoctorCertificateVoucher findDoctorCertificateVoucherByDoctorId(Long doctorId) {
        return doctorCertificateVoucherRepository.findFirstByDoctorId(doctorId);
    }

}
